package cn.edu.hunau.oop.day05;

/**
 * @author hb
 * @date 2025-08-08 14:47:41
 */
public class TestLogin {

    public void login(String username,String pwd){
        if(username.equals("admin") && pwd.equals("123")){
            System.out.println("登录成功");
        }else{
                throw new UserNameAndPasswordErrorException();
        }
    }
}
